#include "EPSG/LightManager.h"

#include "EPSG/LightSource.h"

std::vector<EPSG::LightSource*>	EPSG::LightManager::s_lights;

void EPSG::LightManager::push( EPSG::LightSource* l )
{
	s_lights.push_back( l );
}

bool EPSG::LightManager::setupLights()
{
	if( s_lights.empty() )
		return false;

	std::vector<EPSG::LightSource*>::iterator i;
	for( i = s_lights.begin(); i != s_lights.end(); i++ )
		(*i)->setupLights();

	return true;
}

int EPSG::LightManager::nextID()
{
	return (int)s_lights.size();
}